package com.quick.send.contact.model;

import java.util.ArrayList;
import java.util.List;

public class Contact {

	private String contactId;
	private String displayName;
	private List<String> mobileNumbers;
	private List<String> emails;
	private boolean selected;

	public Contact() {
		super();
		// Initialize default values for contact
		contactId = "";
		displayName = "";
		emails = new ArrayList<String>();
		mobileNumbers = new ArrayList<String>();
		selected = false;
	}

	public String getContactId() {
		return contactId;
	}

	public void setContactId(String contactId) {
		this.contactId = contactId;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public List<String> getMobileNumbers() {
		return mobileNumbers;
	}

	public void setMobileNumbers(List<String> mobileNumbers) {
		this.mobileNumbers = mobileNumbers;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	
	public List<String> getEmails() {
		return emails;
	}

	public void setEmails(List<String> emails) {
		this.emails = emails;
	}

	public String getInfo() {

		StringBuffer result = new StringBuffer(this.displayName);

		for (String number : this.mobileNumbers) {
			result.append("\n");
			result.append(number);
		}
		for (String email : this.emails) {
			result.append("\n");
			result.append(email);
		}		
		return result.toString();
	}
}
